package com.demo.enums;

/**
 * 导出信息类型  1.患者信息  2.VTE防治评估 3.DVT筛查诊断 4.出院总结信息
 */
public enum ExportInfoTypeEnum {
    PATIENT_INFO(1, "患者信息"),
    VTE_INFO(2, "VTE防治评估"),
    DVT_INFO(3, "DVT筛查诊断"),
    OUT_HOSPITAL_INFO(4, "出院总结信息");

    private int value;
    private String desc;

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    ExportInfoTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static ExportInfoTypeEnum getByValue(Integer value) {
        for (ExportInfoTypeEnum item : values()) {
            if (item.getValue() == value) {
                return item;
            }
        }
        return null;
    }
}
